package org.example.bean;

/**
 * 静态内部类实现
 * @author: yh
 * @date: 2022/12/11
 */
public class SingletonStatic {
    private SingletonStatic() {
    }

    private static class SingletonHolder {
        private static final SingletonStatic INSTANCE = new SingletonStatic();
    }

    public static SingletonStatic getUniqueInstance() {
        return SingletonHolder.INSTANCE;
    }
}
